﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hospitalGoodsUnDisable.aspx.cs" Title="启用药品批号"  MasterPageFile="~/Master/MasterPage_New.master" Inherits="HZ.Supervise.Web.Secondphase.ReportHospital.hospitalGoodsUnDisable" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register src="../../Common/SortControls.ascx" tagname="SortControls" tagprefix="uc3" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
    $(document).ready(function() {
        if ($("#ctl00_ContentPlaceHolder1_RadioMore").attr("checked") == false) {
            $(".jl").hide();
        }
        $("#ctl00_ContentPlaceHolder1_RadioOne").click(function() {
            $(".jl").hide();
        });
        $("#ctl00_ContentPlaceHolder1_RadioMore").click(function() {
            $(".jl").show();
        });
    });  

</script>
  <div id="tabnav">
        <ul>
             <li  > <a href="hospitalGoodsDisable.aspx" >锁定药品批号</a></li>
            <li class="active"><a href="javascript:void(0);">启用药品批号</a></li>
              <li><a href="hospitalGoodsDisableLog.aspx">历史记录查询</a></li>
        </ul>
    </div>
    <div id="tabcontent">
          <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicineModelName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                                <td align="right">
                                采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlSortSource" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="0">基本药品</asp:ListItem>
                                    <asp:ListItem Value="1">非基本药品</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                             <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_SC" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                 <hz:HzButton ID="btnFinish" runat="server" Text="查询" onclick="btnQuery_Click" SkinID="search"
            CssClass="btn"  AttributeToControl="Enabled"  />
                    
                </td>
            </tr>
        </table>

    </div>
           
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" >
        <Columns>
             <asp:TemplateField HeaderText="选择">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                        <asp:CheckBox name="chk" id="chk"  runat="server" value='<%#Eval("GoodsID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="30px" />    
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsID" HeaderText="流水号" />
            <asp:BoundField DataField="ProductName" HeaderText="通用名" />
            <asp:BoundField DataField="GoodsName" HeaderText="商品名" NullDisplayText="空" />
            <asp:BoundField DataField="MedicineModelName" HeaderText="剂型" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格" />
            <asp:BoundField DataField="Factor" HeaderText="包装">
                <HeaderStyle Width="30px" />
            </asp:BoundField>
            <asp:BoundField DataField="Unit" HeaderText="单位">
                <HeaderStyle Width="30px" />
            </asp:BoundField>
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="中标企业" />
            <asp:BoundField DataField="GoodsName" HeaderText="商品名" Visible="false" />
            <asp:BoundField DataField="SortName" HeaderText="药品类别" Visible="false">
                <HeaderStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:F3}">
                <HeaderStyle Width="55px" />
            </asp:BoundField>
            <asp:BoundField DataField="SortSource" HeaderText="采购类型" Visible="false" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
             <asp:BoundField DataField="BatchRecordID" HeaderText="批号" />
        </Columns>
    </asp:GridView>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
    </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="HzButton1" runat="server" Text="启用" CssClass="btn" OnClientClick="if(getcheckcount('请至少选择一个要启用的药品批号')){ return confirm('确定要启用药品批号？');} return false;"
            OnClick="btnAdd_Click" />
    </div>
      </asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">

    </asp:Content>


